[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
On 7/10/2023 10:43 AM, denis.ma...@unibe.ch wrote: Page puilder mode sounds interesting! What are you plans for that? Things like: - overflow area - vertical expansion - more detailed tracing - more accurate \testpage - initial and as-we-go stretch/shrink manipulation Most is already

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Bruce Horrocks via ntg-context
> document and find a way to upload it. \testpage[...] might help. <https://wiki.contextgarden.net/Command/testpage> — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-29 Thread cryo shock via ntg-context
quot;CustomBMarks"-list in multi-levels. > >%%% > >\page > >\startstandardmakeup > > \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure} > >\stopstandardmakeup > >%%% > >%%% So the following method would be the b

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-25 Thread Hans Hagen via ntg-context
anted one.   %%%   \startInvisiSection[title={External Testpage A}]     \startstandardmakeup       \filterpages[{test.pdf}][1]     \stopstandardmakeup   \stopInvisiSection \stopcomponent because even a hidden head is something (anchor on page), you can try this: \startstan

[NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-24 Thread cryo shock via ntg-context
CTX places a blank %%% page before every figure... %%% Note: you don't need a dummy file. The last (unnumbered) page is %%% the wanted external PDF. The numbered page before is the unwanted one. %%% \startInvisiSection[title={External Testpage A}] \startstandardmakeup \filterpages

Re: [NTG-context] Problems with itemize with several columns

2022-02-24 Thread fv leung via ntg-context
Avoid using \startformula \stopformula in itemize. Use \dfrac to get display style fraction. \defineenumeration [exercici] [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, headcolor

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Luis Montgomery via ntg-context
Could you define this in the preamble %\unprotect \defineitemgroup [Ex] \setupitemgroup [Ex] [each] [before={\blank[medium]\testpage[1]},after={\blank[big]},option={a, columns,three,fit}] %\protect \startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu: \startEx %\startitemize

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
know the reason, but the attached code des not display very well in mailing > > list. I put it here: > > > > \defineenumeration > > [exercici] > > [alternative=serried, before={\blank[medium]\testpage[1]}, > > text={Exercici}, stopper={.\space}, width=fit, heads

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Bruce Horrocks via ntg-context
t; > \defineenumeration > [exercici] > [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, > stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, > headcolor=exercici_color, title=yes, titlestyle=\ss, titledistance=0em, > left={\bgro

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
In my previous post [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know the reason, but the attached code des not display very well in mailing list. I put it here: \defineenumeration [exercici] [alternative=serried, before={\blank[medium]\testpage[1]}, text

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-15 Thread Joey McCollum via ntg-context
broken across a column > > ``` > > > > This does successfully prevent the placement of the symbol at the top of > a > > page/column, but it doesn't encourage the placement of the symbol at the > > end of a page/column as often as I wo

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Aditya Mahajan via ntg-context
across a column > ``` > > This does successfully prevent the placement of the symbol at the top of a > page/column, but it doesn't encourage the placement of the symbol at the > end of a page/column as often as I would like. Depending on what you want, you can try ad

[NTG-context] setupalign[line]/setupalign[height] break \testpage

2021-05-06 Thread denis.maier
=cmd] So, I thought \testpage or \checkpage here could be a solution. However, the vertical stretching algorithm seems to interfere with \testpage in some way as the example below tries to illustrate. Can anyone confirm this? Is this a bug or am I missing something

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread Hans Hagen
nds in xml file [...] > > > > Here, I was thinking if something like this could be easier: > > > > > you can also do this: > > > > \startxmlsetups xml:testpage >    \testpage[\xmlatt{#1}{n}] &g

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread Duncan Hothersall
> Betreff: Re: [NTG-context] arbitrary context commands in xml file > > > [...] > > > > > > > Here, I was thinking if something like this could be easier: > > > > > > > > you can also do this: > > > > > > > > \star

Re: [NTG-context] arbitrary context commands in xml file

2021-03-08 Thread denis.maier
...] > > > > Here, I was thinking if something like this could be easier: > > > > > you can also do this: > > > > \startxmlsetups xml:testpage >\testpage[\xmlatt{#1}{n}] > \stopxmlsetup > > and register that one (as in previous examples) Th

Re: [NTG-context] arbitrary context commands in xml file

2021-03-05 Thread Hans Hagen
] \testpage[3] \looseness=-1 / \looseness=+1 \blank \setuptolerance etc. Now, of course you can define an injector for these commands, some are predefined, like page, column, blank. But, if my understanding is correct, you'd have to define one for each of the possible parameters. So, you'll

Re: [NTG-context] arbitrary context commands in xml file

2021-03-05 Thread denis.maier
Just to provide more information about what I was thinking: You do your typesetting based on an XML doc. Now it is time for the finishing touches. In a tex document you'd add the usual commands to manipulate the layout: \adaptlayout[lines=+1] \testpage[3] \looseness=-1 / \looseness=+1 \blank

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
> > Another method is to move the section title to the next page when the > remaining spaces > is below a specified number of lines. The following setup forces a page > break when > less than 4 lines remain on the current page. > > \setuphead >[section] >[before={\

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
. Another method is to move the section title to the next page when the remaining spaces is below a specified number of lines. The following setup forces a page break when less than 4 lines remain on the current page. \setuphead   [section]   [before={\testpage[4]\blank[2*big]}] Wolfgang

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
Just about to have these homework files finished! My final problem (I hope) is keeping question/answer blocks together. The questions are currently defined via \defineenumeration with a \testpage (see below). I fiddled with the \testpage and found that \testpage[6] gave me the best results

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Willi Egger
; >>> I use then instead of \stopsection the \stopmysection. This works except >>> that the ornament is in some cases placed on the next page. — My question >>> is whether it is possible to do a \testpage and evaluate the result hereof >>> and then using eith

Re: [NTG-context] ntg-context Digest, Vol 193, Issue 65

2020-07-30 Thread Jan Hansen
rate > > Aditya > > > -- > > Message: 7 > Date: Thu, 30 Jul 2020 21:25:28 +0200 > From: Wolfgang Schuster > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] About testing rest of space on a page > Message-ID: > Cont

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Wolfgang Schuster
placed on the next page. — My question is whether it is possible to do a \testpage and evaluate the result hereof and then using either the placement of the ornament and stop the section or just end the section without ornament? You can put your setups *inside* the test: \definepagechecker

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Taco Hoekwater
is works except that > the ornament is in some cases placed on the next page. — My question is > whether it is possible to do a \testpage and evaluate the result hereof and > then using either the placement of the ornament and stop the section or just > end the section without orn

[NTG-context] About testing rest of space on a page

2020-07-29 Thread Willi Egger
][height=2\lineheight]} \stopsection \stopsetups \def\stopmysection{\setups{endsection}} I use then instead of \stopsection the \stopmysection. This works except that the ornament is in some cases placed on the next page. — My question is whether it is possible to do a \testpage and evaluate

Re: [NTG-context] spacing before items

2020-06-17 Thread Hans Hagen
. \defineenumeration [question] [text=, alternative=serried, distance=1em, width=fit, before={\testpage[4]\blank[3*big]}, after={\blank}] \starttext \dorecurse{10}{ \startquestion \input ward \stopquestion \startitemize[packed,a] \startitem \input ward \stopitem

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan
simply think that it is misbehaving there). In your example you can add \testpage to \section to force a page break when there isn't enough space available to place the heading, this moves also the layer placement to the next page. I’m afraid this doesn’t work with my real document. I need

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
n that case (or I simply think that it is misbehaving there). > In your example you can add \testpage to \section to force a page break > when there isn't enough space available to place the heading, this moves > also the layer placement to the next page. I’m afraid this doesn’t work with my real document

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster
it should be placed on the second page. This sample shows thie problem in a simpler way: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatever] \setuphead [section] [before={\testpage[2]\blank[2*big]}] \starttext \dorecurse{18}{\section{Section

Re: [NTG-context] List of language-specific hyphenation commands

2020-05-23 Thread Wolfgang Schuster
rrent") then context.tex(language) end end \stopluacode \def\doShowLanguage#1% {\doifnotinstring{-}{#1} {\ctxlua{userdata.checklanguage("#1","\luaescapestring{\expandafter\meaning\csname#1\endcsname}")}}% \par} \def\ShowLanguage#1% {\testpage[3

Re: [NTG-context] preventing page break

2019-07-19 Thread Henning Hraban Ramm
for ... One two three for ... One two three for ... %- from here page breaks allowed You can use \testpage{#} to tell ConTeXt there should be at least # lines following; I often use this with \setuphead. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https

[NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
landscape][legal,landscape] \setuppapersize[LH] % \setuplayout [backspace=0.8cm, topspace=1.6cm, bottomspace=0cm, leftmargin=0cm, rightmargin=0cm, bottomspace=0cm, header=0cm, footer=0.5cm, % paperwidth=34.7cm % width=33.9cm, % height=39.2cm ] \usetypescript[heros] \setupbodyfo

Re: [NTG-context] spacing

2018-11-08 Thread Henri Menke
> differently WRT spacing, not only with \framed, but also with heads - >>> everywhere there’s more space induced than before. >>> The attached screenshot shows an example of before and after. >>> >>> The headings are set up like >>> >>> \setuphead[sect

Re: [NTG-context] spacing

2018-11-08 Thread Henning Hraban Ramm
>> differently WRT spacing, not only with \framed, but also with heads - >> everywhere there’s more space induced than before. >> The attached screenshot shows an example of before and after. >> >> The headings are set up like >> >> \setuphead[section,subjec

Re: [NTG-context] spacing

2018-11-08 Thread Wolfgang Schuster
=no, before={\testpage[7]\blank},after=, previousnumber=no, sectionsegments=section] \setuphead[subsection,subsubject][style={\bf}, before={\testpage[7]\blank[small]},after=, sectionsegments=section:subsection] "1 Aufnahme" is a section, "1.1" is a

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread Alan Braslau
mail-archive.com/ntg-context%40ntg.nl/msg78014.html > %width=broad, > %corner=round, > %radius=5ex, > leftoffset=10pt,rightoffset=10pt, > topoffset=10pt,bottomoffset=10pt > %offset=-5pt > ] > > \definestartstop[teoria][

[NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread dxpublica
,bottomoffset=10pt %offset=-5pt ] \definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}] \starttext \startteoria \input tufte \placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
alia, TL18.     \setuptagging [state=start]     \setupexternalfigures [location=default]     \definelayout [testpage]     \definelayer  [testpage]     [width=\paperwidth,height=\paperheight]     \startsetups  [testpage]     \setlayerframed   [testpage]     [preset=rightbott

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
tate=start] \setupexternalfigures [location=default] \definelayout [testpage] \definelayer  [testpage] [width=\paperwidth,height=\paperheight] \startsetups  [testpage]     \setlayerframed   [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, backgr

[NTG-context] Bug with \setuptagging and layers

2018-06-09 Thread Rik Kabel
on=default] \definelayout [testpage] \definelayer  [testpage] [width=\paperwidth,height=\paperheight] \startsetups  [testpage]     \setlayerframed   [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, background=color,backgroundco

Re: [NTG-context] keeping together \subject and a table without a page break

2018-05-03 Thread Robert Zydenbos
like: >> […] > you can put \testpage[4] before the \subsubject (number of lines you want) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / ht

Re: [NTG-context] keeping together \subject and a table without a page break

2018-05-03 Thread Hans Hagen
not seem to work (at least not in MkII), because the parameter 'samepage' is not recognized. I would be very grateful for suggestions. you can put \testpage[4] before the \subsubject (number of lines you want

Re: [NTG-context] prevgraf change if page break occurs in a paragraph

2018-03-05 Thread Hans Hagen
. i don't know your logic but say that you have a dropped thingie that is 5 lines high then you can check for available room \setbox\scratchbox\hbox{...} \getnoflines{\htdp\scratchbox} \testpage[\noflines] then you're for sure on the next page in which case your prevgraf is what you expect

Re: [NTG-context] avoiding space on top of a page

2018-02-11 Thread Wolfgang Schuster
right combination of \blank options... \setuplayout[grid=yes] \setuphead[section][ page=no, style={\bf}, before={\testpage[4]\startlinecorrection\blank[medium,back]}, after={\blank[small,max]\stoplinecorrection}, ] \setuphead [...] [before={\testpage[5]\blank[...]\startlinecorrection},

[NTG-context] avoiding space on top of a page

2018-02-11 Thread Henning Hraban Ramm
][ page=no, style={\bf}, before={\testpage[4]\startlinecorrection\blank[medium,back]}, after={\blank[small,max]\stoplinecorrection}, ] (Please find working example attached.) Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD sectiontest.tex

Re: [NTG-context] Typesetting an interview

2018-02-11 Thread Henning Hraban Ramm
I’d loved to use some clean code, but since I didn’t manage on my own, I resolved to this somewhat ugly setup: \def\doStartInt[#1]{\testpage[2]% \noindent\emph{#1}\par\gobblespacetokens% \startnarrower[left]\noindent\gobblespacetokens} \def\startInt{\dosingleempty\doStartInt} \def\stopInt

Re: [NTG-context] Fwd: Re: Stray blank page with part

2017-12-20 Thread Hans Hagen
On 12/20/2017 6:44 PM, Aditya Mahajan wrote: On Wed, 20 Dec 2017, Hans Hagen wrote: %  solution 1: \setuphead   [part]   [page=no,    placehead=hidden] \setuptexttexts   [\synchronizehead{part}] I recently had a problem where \testpage was misbehaving while \testpagesyncronized worked

Re: [NTG-context] Fwd: Re: Stray blank page with part

2017-12-20 Thread Aditya Mahajan
On Wed, 20 Dec 2017, Hans Hagen wrote: % solution 1: \setuphead [part] [page=no, placehead=hidden] \setuptexttexts [\synchronizehead{part}] I recently had a problem where \testpage was misbehaving while \testpagesyncronized worked correctly. The example above is another

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
% I guess I should change the footnote number font size here? > \stopsetups > > \definestartstop[myQuotation][ >setups=myQuotation, >before={ > \testpage[2] > \startnarrower[left,right] > \noindent}, >after={\stopnarrower > \indenting[next]}] >

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
size here? \stopsetups \definestartstop[myQuotation][ setups=myQuotation, before={ \testpage[2] \startnarrower[left,right] \noindent}, after={\stopnarrower \indenting[next]}] Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID

Re: [NTG-context] Colored rule using MPgraphic

2017-05-17 Thread Hans Hagen
,bottomoffset=1em, before={\testpage[3]\blank[3*big]}, after={\blank[3*big]}] \startuseMPgraphic{background:rule} linecap := butt; begingroup; for i=1 upto nofmultipars : draw (ulcorner multipars[i]--llcorner multipars[i]) withcolor \MPvar{linecolor

[NTG-context] Colored rule using MPgraphic

2017-05-17 Thread Jan Willem Flamma
\definetextbackground [Example] [mp=background:rule,location=paragraph, rulethickness=3pt,framecolor=red, leftoffset=1em,rightoffset=1em, toptoffset=1em,bottomoffset=1em, before={\testpage[3]\blank[3*big]}, after={\blank[3*big]}] \startuseMPgraphic{background:rule} linecap

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Mikael P. Sundqvist
=contrastcolor, style=, alternative=serried, width=fit, number=yes, prefix=yes, prefixsegments=chapter, way=bychapter, indentnext=no, indenting=yes, before={\testpage[2]\blank[big]}, after={\blank[big,samepage]}, ] \starttext \section{A section with questions} \startquestion[Q:test]{This is a title

Re: [NTG-context] placetable with location=split produces error

2016-06-18 Thread Wolfgang Schuster
Christoph Reller <mailto:christoph.rel...@gmail.com> 16. Juni 2016 um 15:31 On Fri, 10 Jun 2016 14:00:01, Christoph Reller This must have something to do with page breaking in conjunction with table splitting. The following MWE produces no error: \starttext \dorecurse{9}{\input ward} \te

[NTG-context] placetable with location=split produces error

2016-06-16 Thread Christoph Reller
... >> \strc_floats_check_caption_content ...ete_caption >> }\ifdim \wd >> \b_strc_floats... >> ... > > I have some additional information: > This must have something to do with page breaking in conjunction with table spli

Re: [NTG-context] page breaks before titles

2015-03-07 Thread mf
You can use the \testpage command where you can set how many lines should remain on the page before a page breaks happens. \setuphead[LetterTitle][before={\testpage[8]\blank[2*line]}] If this doesn’t help you should make a *working* minimal example. Wolfgang Thanks Wolfgang (and Pablo

Re: [NTG-context] page breaks before titles

2015-03-07 Thread Wolfgang Schuster
... Is there a way to know the vertical location where the previous letter ends, to decide whether to skip to a new page? You can use the \testpage command where you can set how many lines should remain on the page before a page breaks happens. \setuphead[LetterTitle

Re: [NTG-context] Conditional keep-with-next rules

2014-06-28 Thread Jan Tosovsky
to be implemented on ConTeXt/Lua side. It requires adding 'checking' commands to proper places. Only ConTeXt knows the item tree, it can count number of item in every level and then decide where placing the command is appropriate. The \testpage or \testcolumn are not IMHO sufficient here. They cannot

[NTG-context] \starttextbackground and \startbackground equivalent options

2014-05-25 Thread Xan
Hi folks, Just a question: I have this textbackground environment: \definestartstop [teoria] [ before={\startbackground[background=color, backgroundcolor=mteoria, frame=on, width=broad, after={\bigskip}, before={\blank[big]\testpage[2]}, backgroundcorner=round, backgroundradius=5ex

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Thangalin
Hi, Try using \testpage[3]. The 3 will have to vary depending on the number of lines that the section titles can possibly take up. For example, if the section title takes up 4 lines, then you might want to use \testpage[5]. \usemodule[visual] % fakewords \definepapersize[a6][width=105mm,height

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Henning Hraban Ramm
Am 2014-03-11 um 03:11 schrieb Thangalin thanga...@gmail.com: Try using \testpage[3]. The 3 will have to vary depending on the number of lines that the section titles can possibly take up. For example, if the section title takes up 4 lines, then you might want to use \testpage[5]. Thank you

Re: [NTG-context] (Combined)lists, two questions

2014-02-14 Thread Robert Blackstone
Am 10.02.2014 um 19:41 schrieb Robert Blackstone blackstone.rob...@gmail.com: 1 How can one force a page break after some section. In my present setup I have a Chapter 4, sitting lonely at the bottom of the first page of the ToC, What can be done about it? You can use \testpage

Re: [NTG-context] Divider in grid environment

2014-02-13 Thread Jan Tosovsky
On 2014-02-08 Jan Tosovsky wrote: On 2014-02-08 Jan Tosovsky wrote: Additionally, I'd like to keep that divider with the previous content (paragraph). In this case AFAIK \testpage[n] cannot be used directly in the divider definition as it breaks the page at position of this command. I'd

Re: [NTG-context] (Combined)lists, two questions

2014-02-10 Thread Wolfgang Schuster
of the first page of the ToC, with its sections on the next page. I have tried \completecontent[3.7], as described on p. 53 of ConTeXt an excursion, but that does not work for me (I'm on mkiv). What can be done about it? You can use \testpage to make sure chapter entries have a certain number

Re: [NTG-context] Divider in grid environment

2014-02-08 Thread Jan Tosovsky
efficient way how to accomplish this? Additionally, I'd like to keep that divider with the previous content (paragraph). In this case AFAIK \testpage[n] cannot be used directly in the divider definition as it breaks the page at position of this command. I'd like to express rather: If there is no space

Re: [NTG-context] Testpage with extras

2014-02-01 Thread Keith J. Schultz
Hagen pra...@wxs.nl: On 1/31/2014 10:46 AM, Keith J. Schultz wrote: Personally, I find the names used sub-optimal! we had testpage and that one stays anyway and checkpage is close to that (overloading testpage with a new syntax is messy) I would think something like conditionalbreak

Re: [NTG-context] Testpage with extras

2014-02-01 Thread Hans Hagen
On 2/1/2014 10:15 AM, Keith J. Schultz wrote: Hi Hans, how about the \ifleftonpage, or something like that? \if is reserved for 'real' ifs - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Testpage with extras

2014-01-31 Thread Keith J. Schultz
as an added layer on top of testpage! At least the test is if X lines left on page or still fit on page! I also have a question. Are the commands setuppagechecker sothat \definepagechecker[whatever] \setuppagechecker[whatever] [lines=35, voffset=10pt, before={\vfill\wordright{(see next page)}\par

Re: [NTG-context] Testpage with extras

2014-01-31 Thread Hans Hagen
On 1/31/2014 10:46 AM, Keith J. Schultz wrote: Personally, I find the names used sub-optimal! we had testpage and that one stays anyway and checkpage is close to that (overloading testpage with a new syntax is messy) I would think something like conditionalbreak or conditionalpagebreak

[NTG-context] Testpage with extras

2014-01-30 Thread H. Özoguz
Hi there, I asked a similar question before, but I try it again (in a bit different way): The command \testpage[n] Paragraph sets the next paragraph on the next page, if there are less than n lines left on the current page. I use this command very often, but need it with some extension

Re: [NTG-context] Testpage with extras

2014-01-30 Thread Hans Hagen
On 1/30/2014 10:37 AM, H. Özoguz wrote: Hi there, I asked a similar question before, but I try it again (in a bit different way): The command \testpage[n] Paragraph sets the next paragraph on the next page, if there are less than n lines left on the current page. I use this command very often

Re: [NTG-context] Testpage with extras

2014-01-30 Thread H. Özoguz
use case needed Here two cases to compare: 1. \setupindenting[yes, 9pt, first] \starttext \noindentation\input knuth\\ \input knuth\blank \noindentation \input knuth \testpage[35]\noindentation\input knuth \stoptext 2. \setupindenting[yes, 9pt, first] \starttext \noindentation\input knuth

Re: [NTG-context] Testpage with extras

2014-01-30 Thread Hans Hagen
On 1/30/2014 12:34 PM, H. Özoguz wrote: use case needed Here two cases to compare: 1. \setupindenting[yes, 9pt, first] \starttext \noindentation\input knuth\\ \input knuth\blank \noindentation \input knuth \testpage[35]\noindentation\input knuth \stoptext 2. \setupindenting[yes, 9pt, first

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-03 Thread Hans Hagen
of the page. this is not the same question as handling orphan and widows - because you surely do not want some titles with only 2-3 lines of body text after them. I always use \testpage[x] to handle those issues, see your example with testpage: \setuphead[section][before={\testpage[8]\blank

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-03 Thread Wolfgang Schuster
text, section titles are still sometimes left at the bottom of the page. this is not the same question as handling orphan and widows - because you surely do not want some titles with only 2-3 lines of body text after them. I always use \testpage[x] to handle those issues, see your example

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-02 Thread Jan Tosovsky
question as handling orphan and widows - because you surely do not want some titles with only 2-3 lines of body text after them. I always use \testpage[x] to handle those issues, see your example with testpage: \setuphead[section][before={\testpage[8]\blank}] Thanks, it works! Another magic

Re: [NTG-context] Keeping titles together with the following text when grid is on

2013-12-02 Thread Aditya Mahajan
On Mon, 2 Dec 2013, Jan Tosovsky wrote: \setuphead[section][before={\testpage[8]\blank}] Thanks, it works! Another magic command not documented anywhere in the ConTeXt Guide or Wiki... In that case, please add it to the wiki. Aditya

[NTG-context] Testpage vs. indentation

2013-10-29 Thread H. Özoguz
Hello together, normally I want intendation for new paragraphs, but not, if the paragraph is set on the next page by \testpage. See this minexample: \setupindenting[yes, 9pt,first] \starttext \input knuth \testpage[35] \input knuth \stoptext Or more general: No indentation of paragraphs

Re: [NTG-context] Testpage vs. indentation

2013-10-29 Thread Mica Semrick
. Özoguz h.oezo...@mmnetz.de wrote: Hello together, normally I want intendation for new paragraphs, but not, if the paragraph is set on the next page by \testpage. See this minexample: \setupindenting[yes, 9pt,first] \starttext \input knuth \testpage[35] \input knuth \stoptext Or more

Re: [NTG-context] No page break between chapter-title and section-title in TOC

2013-10-02 Thread Wolfgang Schuster
Am 02.10.2013 um 12:14 schrieb H. Özoguz h.oezo...@mmnetz.de: This one is still open, is there maybe a workaround to prevent page-breaks in the TOC between chapter- and sections-titles (or part- and chaptertitles). \setuplist [chapter] [before={\testpage[4]\blank}] Wolfgang

[NTG-context] Breaks in TOC

2013-10-01 Thread H. Özoguz
be no immediate page-break. So I would need something like \testpage[10], but for the toc. How to do this? Thanks again. Huseyin ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] No indentation after macro

2013-07-24 Thread H. Özoguz
I have defined the following macro: \def\Qur[#1][#2][#3][#4]{\placeongrid{\blank[4pt]\testpage[4] \setupindenting[no] \startalignment[right]\setupalign[r2l]\setupinterlinespace[line=3.7ex]\amiri #1 \stopalignment \blank[4pt] {\bf #2} \wordright{\tfx (Heiliger Qur'an #3:#4)} \blank[3pt

Re: [NTG-context] No indentation after macro

2013-07-24 Thread Wolfgang Schuster
Am 24.07.2013 um 12:23 schrieb H. Özoguz h.oezo...@mmnetz.de: I have defined the following macro: \def\Qur[#1][#2][#3][#4]{\placeongrid{\blank[4pt]\testpage[4] \setupindenting[no] \startalignment[right]\setupalign[r2l]\setupinterlinespace[line=3.7ex]\amiri #1 \stopalignment \blank[4pt

[NTG-context] [***SPAM***] Joining two paragraphs

2013-07-22 Thread H. Özoguz
could join them now with \testpage[2], but is there another way, without counting lines? And without invisible frames? Just like an automatic testpage, which knows how many lines it must have. Thanks Huseyin

Re: [NTG-context] relative references?

2013-07-07 Thread Steffen Kram
][style={\ss\bfb}, page=no, number=yes, frame=off, placehead=yes, align=right, before={\testpage[6]\blank[2*line]}, after={\blank}, prefix=+] \setuphead [subsection][style={\ss\bfa}, page=no, number=yes, frame=off, placehead=yes, align=right, before={\testpage[6]\blank[line]}, after={}, prefix

Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Aditya Mahajan
this trickis on the wiki on the Verse page. If the poem consists of stanzas with fixed number of lines, say 4, then you could also try: \setuplines[inbetween={\testpage[4]\blank}] This will ensure that a stanza does not break across pages

Re: [NTG-context] Defined and not defined and better be done global

2013-04-27 Thread Cecil Westerhof
. Was a ‘little while ago’ I wrote it. I thought that 1.5em was used for relative definitions. I have a inc file that I use. In this I have: \def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[15] \fi

[NTG-context] Command only if \testpage is active

2013-04-18 Thread H. Özoguz
Hi, for subsections I use \setuphead[subsection] [after=\vskip-1.6mm, before={\testpage[5]\vskip1.6mm}] The reason is perfect distances between text-subsection-text with activated gridding. If the subsection is not set by \testpage on the next page, then everything workes fine

Re: [NTG-context] Command only if \testpage is active

2013-04-18 Thread Wolfgang Schuster
Am 18.04.2013 um 17:44 schrieb H. Özoguz h.oezo...@mmnetz.de: Hi, for subsections I use \setuphead[subsection] [after=\vskip-1.6mm, before={\testpage[5]\vskip1.6mm}] The reason is perfect distances between text-subsection-text with activated gridding. If the subsection

[NTG-context] Command only if \testpage is active

2013-04-18 Thread H. Özoguz
[subsection] [after=\vskip-1.6mm, before={\testpage[5]\vskip1.6mm}]] \starttext \dorecurse{18}{Linefill\\} \input tufte \subsection{Hallo} \input tufte \subsection{Hallo} \input tufte \input tufte \stoptext Huseyin

Re: [NTG-context] Command only if \testpage is active

2013-04-18 Thread Wolfgang Schuster
] [after=\vskip-1.6mm, before={\testpage[5]\vskip1.6mm}]] Don’t use such odd values for the spaces before/after the heading which don’t make sense when you use the grid. When you have a heading with more text or a bigger font size try to change the value for the grid-key in \setuphead

[NTG-context] Command only if \testpage is active

2013-04-18 Thread H. Özoguz
=yes] \showgrid \setuphead[subsection] [before={\testpage[5]\blank[2*line]}] \setuphead[grid=high] \starttext \dorecurse{15}{Linefill\\} \input tufte \subsection{Hallo} \input tufte \subsection{Hallo} \input tufte \input tufte \stoptext But it is not good as my original, and the so the values make

Re: [NTG-context] Section alone on the page

2012-11-21 Thread Hans Hagen
globally how the sections are set (like I can do it manually) and adds \page to the files before the section-commands or deletes the \page, if it is not needed anymore. adding before={\testpage[5]\blank} or so

Re: [NTG-context] Section alone on the page

2012-11-21 Thread luigi scarso
. And I can not layout with gridset=yes, too. I'm thinking of some script, which checks globally how the sections are set (like I can do it manually) and adds \page to the files before the section-commands or deletes the \page, if it is not needed anymore. adding before={\testpage[5]\blank} or so

Re: [NTG-context] Section alone on the page

2012-11-21 Thread H. Özoguz
Am 21.11.2012 14:40, schrieb Hans Hagen: adding before={\testpage[5]\blank} or so Thanks Hans, thats quite useful for me (for other purposes, too). ___ If your question is of interest to others as well, please add

[NTG-context] write my own text in the header

2012-07-17 Thread dalyoung
]}] \setupbackgrounds[page][background=yellow-spring] \dontleavehmode \blank[.5cm] \placefigure[none][]{} {\getbuffer[TitleOfSlides]} \blank[1.5cm] \placefigure[none][]{} {\getbuffer[Speaker]} \page \component TestPage ... --Output The background yellow-spring is appeared in the first page(Title

Re: [NTG-context] \setuphead and testpage

2012-07-14 Thread Wolfgang Schuster
Am 14.07.2012 um 00:32 schrieb Hans Hagen: On 13-7-2012 10:02, Wolfgang Schuster wrote: Hi Hans, can you add a testpage option to \setuphead? %\setuphead[section][testpage=4] \setuphead[section][before={\testpage[4]\blank[2*big]}] \starttext \section{First} \dorecurse{36}{Line

[NTG-context] \setuphead and testpage

2012-07-13 Thread Wolfgang Schuster
Hi Hans, can you add a testpage option to \setuphead? %\setuphead[section][testpage=4] \setuphead[section][before={\testpage[4]\blank[2*big]}] \starttext \section{First} \dorecurse{36}{Line \recurselevel\par} \section{Second} \dorecurse{36}{Line \recurselevel\par} \stoptext Wolfgang

Re: [NTG-context] \setuphead and testpage

2012-07-13 Thread Hans Hagen
On 13-7-2012 10:02, Wolfgang Schuster wrote: Hi Hans, can you add a testpage option to \setuphead? %\setuphead[section][testpage=4] \setuphead[section][before={\testpage[4]\blank[2*big]}] \starttext \section{First} \dorecurse{36}{Line \recurselevel\par} \section{Second} \dorecurse{36

  1   2   >